@echo off
set fname=ftpscr
set hname=ftp.online.net
set uname=webmaster@milkgard.fr
echo.
echo // ========== Parameters
echo // Hostname : %hname%
echo // User : %uname%
.\tools\editv32 -m -p "// Password : " pword
echo.
echo // ========== Building FTP Script
echo open %hname%>>%fname%
echo %uname%>>%fname%
echo %pword%>>%fname%

echo cd www/stream>>%fname%
echo mdelete "*.*">>%fname%
echo mput "..\www\*.*">>%fname%

echo cd model>>%fname%
echo mdelete "*.*">>%fname%
echo mput "..\www\model\*.*">>%fname%

echo cd ../console>>%fname%
echo mdelete "*.*">>%fname%
echo mput "..\www\console\*.*">>%fname%

echo cd ../pages>>%fname%
echo mdelete "*.*">>%fname%
echo mput "..\www\pages\*.*">>%fname%

echo quit>>%fname%
echo // ========== FTP Transfert
ftp -i -s:%fname%>nul
echo // ========== Cleanup
del /Q %fname%